package com.example.commonmistak.apidesign;

import com.example.commonmistak.apidesign.common.ApiVersionHandleMapping;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * @author xionggg
 */
@SpringBootApplication
public class ApiDesignApplication implements WebMvcRegistrations {
    public static void main(String[] args) {
        SpringApplication.run(ApiDesignApplication.class, args);
    }

    @Override
    public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
        return new ApiVersionHandleMapping();
    }
}
